package ru.evga.inse.server.gwt.admin.client.menu.dict.city;

import ru.evga.gwt.lib.common.client.ui.dialog.AbstractDtoEditDialog;
import ru.evga.gwt.lib.common.client.ui.editor.ISaveEntityCallback;
import ru.evga.inse.server.gwt.common.client.domain.dict.CityDto;

import com.google.gwt.core.client.GWT;
import com.google.gwt.editor.client.SimpleBeanEditorDriver;


public class CityEditDialog
    extends AbstractDtoEditDialog<CityDto, CityEditPanel>
{
    interface Driver
        extends SimpleBeanEditorDriver<CityDto, CityEditPanel>
    {
    }
    Driver driver = GWT.create(Driver.class);
    private CityEditPanel panel;

    public CityEditDialog(CityDto city, ISaveEntityCallback<CityDto> persistCallback)
    {
        panel = new CityEditPanel();
        init(city, panel, persistCallback, driver, "city");
    }

}
